
#ifndef __sql_interface_H__
#define __sql_interface_H__


class sql_interface
{
public:

    virtual bool open(char* filename)=0;
    virtual std::vector<std::vector<std::string> > query(char* query) = 0;
    virtual void close()=0;
    virtual void exec(char* query) = 0;
    virtual void* prepare(char* query) = 0;
    virtual void bind(void* stat, int position, char*text, int len = 0) = 0;
    virtual void bind(void* stat, int position, void*data, int len = 0) = 0;
    virtual void bind(void* stat, int position, long val, int len = 0) = 0;
    virtual void bind(void* stat, int position, double val, int len = 0) = 0;
    void bind(void* stat, int position, int val, int len = 0){
        bind(stat, position, (long)val, len);
    };
    virtual void step(void* stat) = 0;
};

#endif

